package com.qzsoft.zhjd.asphalt.modules.asphaltalarm.dto;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName AsphaltAlarmHandlerEditDto
 * @Description 预警处置编辑数据
 * @author linhuawei
 * @since 2021-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class AsphaltAlarmHandlerEditDto {

    /**
     * 预警主键
     */
    @NotBlank(message = "预警主键不可为空")
    private String id;

    /**
     * 问题原因
     */
    @NotBlank(message = "问题原因不可为空")
    private String alarmReason;

    /**
     * 处理方案
     */
    @NotBlank(message = "处理方案不可为空")
    private String handlerPlan;

    /**
     * 处理结果
     */
    @NotBlank(message = "处理结果不可为空")
    private String handlerResult;

    /**
     * 处理人
     */
    @NotBlank(message = "处理人不可为空")
    private String handlerPerson;

    /**
     * 处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "处理时间不可为空")
    private Date handlerTime;

}
